#include "login.h"
#include "ui_login.h"
#include "registered.h"

Login::Login(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Login)
{
    ui->setupUi(this);
}

Login::~Login()
{
    delete ui;
}

void Login::on_registereBtn_clicked()
{
    close();
    _reg = std::make_shared<Registered>();
    _reg->show();
    _reg->set_login(shared_from_this());
}

